package com.konglingfu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.konglingfu.entities.Book;
import com.konglingfu.mapper.BookMapper;
import com.konglingfu.service.BookService;

@Service
public class BookServiceImpl  implements BookService{

	@Autowired
	private BookMapper bookMapper ;
	
	
	@Override
	public List<Book> getList() {
		return bookMapper.getList();
	}


	@Override
	public void addBook(Book book) {
		bookMapper.addBook(book);
		
	}
	
}
